package com.dy.lock.screen.service;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.AdvertInfo;
import com.dy.lock.screen.pojo.AdvertTagRelationInfo;
import com.dy.lock.screen.scoket.Head;

public interface AdvertService {

	/**
	 * 根据广告编号查询
	 * 
	 * @param adIds
	 * @param head
	 * @return
	 */
	public List<AdvertInfo> queryByAdIds(Map<String, Object> map, Head head);

	/**
	 * 查询所有
	 * 
	 * @param head
	 * @return
	 */
	public List<AdvertInfo> queryAll(Map<String, Object> map, Head head);

	/**
	 * 通过广告id查询广告标签信息
	 * 
	 * @param adId
	 * @param head
	 * @return
	 */
	public List<AdvertTagRelationInfo> queryByAdId(String adId, Head head);

	/**
	 * 通过广告id查询
	 * 
	 * @param adId
	 * @param head
	 * @return
	 */
	public AdvertInfo queryByPrimaryKey(String adId, Head head);

	/**
	 * 更新信息
	 * 
	 * @param advertInfo
	 * @param head
	 * @return
	 */
	public int update(AdvertInfo advertInfo, Head head);

	/**
	 * 
	 * 查询要删除的广告id列表
	 * 
	 * @param map
	 * @return
	 */
	public List<String> queryWillDeleteId(Map<String, Object> map);

	/**
	 * 通过广告标签查询广告
	 * 
	 * @param map
	 * @return
	 */
	public List<String> queryByAdTag(Map<String, Object> map);
}
